package tech.six6;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import tech.six6.entity.MybatisSpring;
import tech.six6.service.MybatisSpringService;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
        MybatisSpringService service = (MybatisSpringService)applicationContext.getBean("mybatisSpringService");
        List<MybatisSpring> mybatisSprings = service.selectAll();
        mybatisSprings.forEach(x-> System.out.println(x));

    }
}
